package com.liuyi.observertest;

import com.liuyi.producer.Porduct;
import com.liuyi.producer.ProductConsumer;
import com.liuyi.producer.PorductProducer;
import com.liuyi.producer.Store;

public class Test1 {

	public static void main(String[] args) {
		Store<Porduct> store = new Store<Porduct>();

	    new ProductConsumer().bindStore(store).consume();
	    new PorductProducer()
        .bindStore(store)
        .setName("1号生产线")
        .production();
	}
}
